﻿using System.IO;
using Newtonsoft.Json;

namespace SManagement.Interfaces
{
    public static class App
    {
        public static GoogleWeb GoogleSecrets = null;

        public static void LoadConfiguration()
        {
            GoogleSecrets = new GoogleWeb
            {
                auth_provider_x509_cert_url = "https://www.googleapis.com/oauth2/v1/certs",
                auth_uri = "https://accounts.google.com/o/oauth2/auth",
                client_id = "27089820154-bbqco1cdvo0klghpid3eec6ql4j1roqf.apps.googleusercontent.com",
                client_secret = "3r86hXtGn88C2fLb5sxvPcRk",
                javascript_origins = new string[] { "https://localhost:44300" },
                redirect_uris = new string[] { "https://localhost:44300/signin-google" },
                token_uri = "https://accounts.google.com/o/oauth2/token"
            };
        }
    }

    public class GoogleWeb
    {
        public string auth_provider_x509_cert_url,
            auth_uri,
            client_id,
            client_secret,
            token_uri;

        public string[] javascript_origins,
            redirect_uris;
    }
}